/**************************************************************
          File Name:test.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sat Jul 25 10:41:25 2015
***************************************************************/

#include <stdio.h>
#include <myarg.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char *argv[])
{
    char *buf = (char *)malloc(256);

    memset(buf, 0, 256);

    mysprintf(buf, "str: %%s\tdigits: %d\tchar: %c%%%%\n", "test", 309, 'c');

    printf("%s", buf);

    free(buf);

    return 0;
}
